<div class="list6" style="background-color:#eff8fd;"> 
                    <table border="0" cellpadding="0" cellspacing="0" width="660" style="margin:10px; font-size:14px;" > 
                          <volist name="list" id="vo">
                          <tr class="nocheck">
                            <td>
                                <table>
                                    <tr>
                                      <td rowspan="5" style="">
                                        <a href="{:U('Team/Home/index')}/id/{$vo.Id}">
                                <img  src='__UPFILE__/Img/TeamFace/{$vo.Logo|default="default.gif"}' style="border:1px solid #00CCFF;"/></a>
                                      </td>
                                    <td><td>
                                    </tr>
                                    <tr>
                                      <td></td>
                                      <td>团队名称：<span><a href="{:U('Team/Home/index')}id/{$vo.Id}">{$vo.Name}</a></span></td>
                                    </tr>
                                    <tr><td></td><td>队长：<span><a href="###">{$vo.CaptainName}</a></span>&nbsp;&nbsp;&nbsp;所在院校：{$vo.SchoolName}</td></tr>
                                    <tr><td></td><td>口号：{$vo.Declaration}</td></tr>
                                    <tr><td></td><td><span class="delnocheckTeam" val="{$vo.Id}" title="拒绝"  style="cursor:pointer;color:blue;"> 拒绝</span>
                                    <span class="agreewith" val="{$vo.Id}" title="同意"  style="cursor:pointer;color:blue;"> 同意</span></td></tr>
                                </table>
                            </td>
                          </tr> 
                        </volist>
                    </table> 
              </div>
<script>
    $(function(){
        $('.delnocheckTeam').click(function(){
            var val=$(this).attr("val");
            obj=$(this);
            $.ajax({
                type: "POST",
                url: "__URL__/delnocheckFrienTeam",
                data: "fileid="+val,
                success: function(msg){
                    obj.parentsUntil('.nocheck').remove();
                }
            });
        });


    $('.agreewith').click(function(){
        var val=$(this).attr("val");
        obj=$(this);
        $.ajax({
                  url:'__URL__/applyasfriendteam',
                  type:'POST',
                  data: "fileid="+val,
                  dataType:'json',
                  success:function(data){
                    alert(data.info);
                  },
                  error:function(){
                    alert('加载信息失败!');
                  }
                  
                });


      });

    });
   
</script>